Search found 384 matches

by ganamant
Mon Apr 04, 2022 9:34 am
Forum: Scripts & Bash
Topic: Show me your aliases and i'll show you mine ;-)
Replies: 56
Views: 16614

Re: Show me your aliases and i'll show you mine ;-)

I always like using the -h option for human-readable output when the commands support it. Here are some of my favourite aliases:

Code: Select all

alias ll='ls -lh'
alias du='du -h'
alias df='df -h'
alias free='free -h'
by ganamant
Mon Apr 04, 2022 9:26 am
Forum: Scripts & Bash
Topic: bash script that randomly prints numbers between 1 and 10 without repetition
Replies: 13
Views: 1161

Re: bash script that randomly prints numbers between 1 and 10 without repetition

I'm working on random numbers to improve myself. Shuffling may seem trivial, but it's tricky to come up with a formally rigorous and fair algorithm. This is why it is generally advised to rely on existing utilities (such as sort, as has been mentioned) and libraries (most languages have one with a ...
by ganamant
Mon Apr 04, 2022 9:06 am
Forum: Scripts & Bash
Topic: shell script
Replies: 3
Views: 659

Re: shell script

I recommend that you call nohup and put an & after the command, such as

Code: Select all

nohup xed <script.sh> &
so that you'll be able to close the terminal window you launched the command from without affecting the window your editor resides in.
by ganamant
Sat Apr 04, 2020 3:03 pm
Forum: Open Chat
Topic: How do you handle being blocked by your favorite content creator?
Replies: 24
Views: 3985

Re: How do you handle being blocked by your favorite content creator?

khaki45 wrote: Fri Apr 03, 2020 11:23 pm How does one handle this situation in a mature manner?
Strange concern about this "mature manner" thing; what do you mean by that? Is stopping financial support and finding something else to read "mature" enough? That's what I'd do.
by ganamant
Tue Apr 30, 2019 9:02 am
Forum: Beginner Questions
Topic: howto replace the window manager with fluxbox w/o destroying the installation?
Replies: 10
Views: 1423

Re: howto replace the window manager with fluxbox w/o destroying the installation?

Fred_VIE wrote: Tue Apr 30, 2019 8:50 am I guess I have to let another two decades pass.
Yes, and let Windows "improve" some more in the meanwhile. It sure has gotten better in the past few years, hasn't it?
by ganamant
Tue Apr 30, 2019 8:57 am
Forum: Scripts & Bash
Topic: Self-created Script (programs de-, install)
Replies: 3
Views: 1893

Re: Self-created Script (programs de-, install)

Your purpose is not very clear, especially this sentence: This script should write that to another script that i use after reinstallation of linux. You can run dpkg -l to list all installed packages. Redirect that output to a file if you want to save it for later use. This will tell you the whole st...
by ganamant
Sat Apr 27, 2019 3:33 pm
Forum: Beginner Questions
Topic: show files on a partition ?
Replies: 10
Views: 1724

Re: show files on a partition ?

By the way, msdos is a partition table type, not a partition format. My brain unicorn turned msdos into fat32... Just curious: did you really mean to write "unicorn" or did you write some profanity that was substituted by the forum engine? It happened to me once, as I attempted to write &...
by ganamant
Sat Apr 27, 2019 3:27 pm
Forum: Beginner Questions
Topic: Problems with Ctrl+C and Ctrl+V
Replies: 5
Views: 2616

Re: Problems with Ctrl+C and Ctrl+V

Have you ruled out a hardware problem? What happens with an external keyboard? What happens with the built-in keyboard and another OS (live distro)?
by ganamant
Fri Apr 26, 2019 6:33 am
Forum: Beginner Questions
Topic: show files on a partition ?
Replies: 10
Views: 1724

Re: show files on a partition ?

An SSD is great for static system files and will speed up loading, but IMHO it's a poor choice for frequently updated files, because that will put the drive under undue wear and shorten its life. Since you also have a magnetic drive, take advantage of that. I would mount /tmp as a RAM tmpfs and make...
by ganamant
Fri Apr 26, 2019 2:06 am
Forum: Beginner Questions
Topic: Setting up WiFi share
Replies: 6
Views: 550

Re: Setting up WiFi share

Try to create an empty file on the command line into a shared directory: are the permissions alright? If everything looks good on CLI, it might just be a GUI glitch; otherwise, there might be a problem with umask. Since you were able to create the file in the first place, it can't be a r/w thing.
by ganamant
Thu Apr 25, 2019 12:37 pm
Forum: Beginner Questions
Topic: Not able to upgrade from 18.3 to 19.1
Replies: 12
Views: 687

Re: Not able to upgrade from 18.3 to 19.1

I never tried to install /home in a separated partition to avoid a backup. To avoid a backup? What do you mean? Since you are reinstalling, you can make a new partition table and tell the installer how to use each partition. The system is going to work without further intervention. pbear makes some...
by ganamant
Thu Apr 25, 2019 12:10 pm
Forum: Beginner Questions
Topic: Kindle dwindle
Replies: 2
Views: 1917

Re: Kindle dwindle

Maybe this is related to DRM or some other dirty trick that the Kindle does? Take a look here.
by ganamant
Thu Apr 25, 2019 8:54 am
Forum: Beginner Questions
Topic: Not able to upgrade from 18.3 to 19.1
Replies: 12
Views: 687

Re: Not able to upgrade from 18.3 to 19.1

Whatever path you take, remember to save a list of installed software, because a fresh install will wipe that. Also make an archive of the /etc directory if you have modified any configuration files in there. The safest approach -- so you don't forget anything -- is to clone the whole HDD to an exte...
by ganamant
Thu Apr 25, 2019 8:40 am
Forum: Beginner Questions
Topic: Internal Hard Drive Write Access [SOLVED]
Replies: 5
Views: 3578

Re: Internal Hard Drive Write Access

I surely don't want to lose any of my Data. Is that so? In that case make backups, and don't make them today, make them yesterday ! Regarding your problem, let's read the man page for mount : Mount options for ntfs iocharset=name Character set to use when returning file names. Unlike VFAT, NTFS sup...
by ganamant
Thu Apr 25, 2019 8:24 am
Forum: Beginner Questions
Topic: Setting up WiFi share
Replies: 6
Views: 550

Re: Setting up WiFi share

From the output you have posted, it seems that 192.168.29.1 is the address of your gateway. You'll have to either: export to the whole subnet, i.e. /home/jas/Documents 192.168.29.0/24(rw,sync,no_subtree_check) or, export just to the client you want to access the share from: /home/jas/Documents 192.1...
by ganamant
Wed Apr 24, 2019 2:40 pm
Forum: Beginner Questions
Topic: Didn't partition it when installing.
Replies: 8
Views: 510

Re: Didn't partition it when installing.

Partitioning after installing can certainly be done. Back up everything first as it's already been suggested. Remember that your system won't see the new partitions or mount them where they are supposed to be mounted unless you alter /etc/fstab manually to the new situation. Especially, if you move ...
by ganamant
Wed Apr 24, 2019 2:04 pm
Forum: Beginner Questions
Topic: Setting up WiFi share
Replies: 6
Views: 550

Re: Setting up WiFi share

What you are describing is not mirroring. Mirroring is maintaining a copy of the source in some other location across a network and updating the copy whenever the source changes, so both copies are equivalent. What you need is configuring your desktop as a file server. nfs is a good choice for this:...
by ganamant
Wed Apr 24, 2019 1:50 pm
Forum: Beginner Questions
Topic: Folder sharing issue
Replies: 16
Views: 5742

Re: Folder sharing issue

I know very little about samba, but I think I remember that it's used to share from *nix environments to Windows clients. Since both machines are *nix flavours, simpler solutions may just fit the bill, such as setting up an nfs server on the Linux machine and accessing it via the Mac. I'm not sure w...
by ganamant
Tue Apr 23, 2019 2:55 pm
Forum: Beginner Questions
Topic: music from computer to iphone?
Replies: 16
Views: 8182

Re: music from computer to iphone?

Provided that the iPhone takes µSD cards (I don't own one, but I suppose it does), what's wrong about copying files into the µSD and plugging it back into the iPhone? If that's only a matter of a few files, can't bluetooth be used? I presume that the most obvious approach, i.e. a USB cable, has alre...
by ganamant
Tue Apr 23, 2019 2:47 pm
Forum: Beginner Questions
Topic: Backuping up encrypted files with Timeshift
Replies: 4
Views: 1013

Re: Backuping up encrypted files with Timeshift

Ahem, saving Timeshift snapshots to a separate drive has advantages, if one has the hardware, but saving them on the same drive as the system is fine for the vast majority of users. OK for the same drive, but I would at least use a dedicated partition. I don't know what the OP's partitioning scheme...

Go to advanced search