• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

The "Linux questions (and other stuff)" thread

NO ONE's a bigger *buntu fan than me! :) I've proselytized about my favorite *buntu, Kubuntu, so much around here that a number of members have switched to it [or at least tried it].


Perhaps. It's kind of hard to say, you know? I mean, for me personally, I just have no inclination to switch from Android--which does everything I want and keeps me endlessly occupied with apps--to Ubuntu; and since Android is also Linux-based, all is well in my universe. :D


But would you do that in PLACE of Android or in ADDITION to it? I can't justify having two working smartphones [when I don't even get an AT&T signal at home], so it would have to be either/or for me. Of course I could keep the Android one for doing what I currently do, i.e., play games, connect via wi-fi, etc. Basically anything that doesn't require a signal. :rolleyes:






Honestly, my phone is a glorified MP3 Player and camera. While its nice to be able to check email, weather, etc whenever I want, its just bonus perks to me these days.



But I digress. To get back on topic. Newest kernel update for *buntu borked my WiFi. Silly bcm4313. Oh well, at least Ethernet works. Not that it matters. I keep going back to Arch or Debian. Though I usually break my arch distro somehow...
 
I've got about 16,000 pictures that I need to rename in sequential order what is the best way to do this. I need to start with 0
 
I use a windows utility called AF rename to perform mass file name changes. It might run in wine.

cool. I don't have wine installed I know there are some good linux utils that can do it but i'm hoping more for a script type solution so that I can do it often as needed.
 
I found a bash solution that works for me. I modified it a little bit to make it work the way I wanted it to but hey thats what's its all about right :)

[HIGH]c=0
for file in $(ls -rt); do let c=${c}+1; mv "${file}" "image${c}.${file#*.}"; done[/HIGH]

this is the code. i've used you can change image to any name of your choice this will rename any file to the name "imageX" where X is a number so image1 would be an example. Happy Renaming

The original code can be found here:
grep Linux How to batch rename files in Linux

PS: This starts the count at 1 not zero but it works for what I need it to anyways so no biggie there.
 
I use a windows utility called AF rename to perform mass file name changes. It might run in wine.
No...no...no... That's so wrong. :(

The GREATEST thing about *nix is its built-in commands. (Well, that plus its stability...security...features...versatility...) You need look no further than its command line. EVERYTHING is doable there. :D

Refer back to post #1 in this thread for an example of mass renaming files.
 
I found a bash solution that works for me. I modified it a little bit to make it work the way I wanted it to but hey thats what's its all about right :)

[HIGH]c=0
for file in $(ls -rt); do let c=${c}+1; mv "${file}" "image${c}.${file#*.}"; done[/HIGH]

this is the code. i've used you can change image to any name of your choice this will rename any file to the name "imageX" where X is a number so image1 would be an example. Happy Renaming

The original code can be found here:
grep Linux How to batch rename files in Linux

PS: This starts the count at 1 not zero but it works for what I need it to anyways so no biggie there.
Super easy fix for that: Change c=0 to c=-1. :D
 
If all goes to plan and I'm not outbid whilst I'm asleep, I'll have a new netbook in about 5 hours time.

I'll see how it runs on Win7 starter, then go for a Wubi install of Ubuntu, or Mint probably - with the long term plan of dual booting W7 & Mint.

The Mint dual boot guides I've seen all refer to booting from a CD, which the netbook doesn't have, so can I use UNetbootin with Mint and install from USB? The Ubuntu guide mentions UNetbootin, but does it work for other distros too?

Also, am I best to let the install take care of the partitioning or best to set stuff manually like in this guide here: How to dual-boot Linux Mint 13 Cinnamon/MATE and Windows 7 | LinuxBSDos.com
 
If all goes to plan and I'm not outbid whilst I'm asleep, I'll have a new netbook in about 5 hours time.

I'll see how it runs on Win7 starter, then go for a Wubi install of Ubuntu, or Mint probably - with the long term plan of dual booting W7 & Mint.

The Mint dual boot guides I've seen all refer to booting from a CD, which the netbook doesn't have, so can I use UNetbootin with Mint and install from USB? The Ubuntu guide mentions UNetbootin, but does it work for other distros too?

Also, am I best to let the install take care of the partitioning or best to set stuff manually like in this guide here: How to dual-boot Linux Mint 13 Cinnamon/MATE and Windows 7 | LinuxBSDos.com

If you intend to use Ubuntu 13.04 or newer, Wubi isn't an option AFAIK
 
Great Idea. hopefully this becomes one of my newest hangouts. I'm always looking to learn something new.

so let me ask the first question. I download a file (graphic) from a website that puts its name in brackets along with the name of the file.

example
[www.somesite.com]fantasy (7).jpg

what would be the best way to rename the file without having to do a full rename of each and every file? for the sake of this example lets say ten files.

thanks

Easiest way would be to do a cut, using ] as the delimiter, and extract the 2nd field.

Note. The following may not be 100% syntactically correct, but you will get the jist.
Eg.
For I in 'ls'
Do
F='Echo $I|cut -d"]" -f2'
Mv $I $f
Done
 
If all goes to plan and I'm not outbid whilst I'm asleep, I'll have a new netbook in about 5 hours time.

I'll see how it runs on Win7 starter, then go for a Wubi install of Ubuntu, or Mint probably - with the long term plan of dual booting W7 & Mint.

The Mint dual boot guides I've seen all refer to booting from a CD, which the netbook doesn't have, so can I use UNetbootin with Mint and install from USB? The Ubuntu guide mentions UNetbootin, but does it work for other distros too?

Also, am I best to let the install take care of the partitioning or best to set stuff manually like in this guide here: How to dual-boot Linux Mint 13 Cinnamon/MATE and Windows 7 | LinuxBSDos.com

Booting from a usb should be fine. You can use Unetbootin to install other distro's as well. Personally I just use dd command in Linux to make my USB LIVE CD.

Partitioning will be dependent upon what you want to do. I personally recommend that you manually partition. But if your not comfortable with the Linux Partition System offered by Linux Mint then you may be better off letting Setup install the partitions. If you decide to partition manually as your article discusses then I would set it up very similar to what he did however I would probably use Gparted instead of another Partition manager. I keep 4 partitions on my drive. /boot, /, /home, and swap. I however am not dual booted so I had no Windows to worry with. And as always we welcome your questions so if you have any don't hesitate. :)
 
As for partitioning, I'm running 6 partitions at the moment

1: 1GB EFI System Partition
2: 128 GB root partition (Arch Linux, contains an 8 GB swap file)
3: 120 GB home partition
4: 100 GB partition (Android builds, could probably be part of root or home)
5: 120 GB partition (NTFS, D: on Windows, shared between the two operating systems)
6: 229.51 GB partition (Windows C:\)

Personally, if you dual boot and you expect to have some files you want accessible from both sides, you will definitely want a shared partition. If the system is BIOS based, the EFI system partition wouldn't need to be necessary. You would want to take the amount of space on the drive into account as well so you don't end up spreading your space too thin
 
Why do windows act stupid?
At work using the usb cable to connect the moto g phone to computer, it would charge but I couldn't see files on phone, but when i do it wit linux, it charge and i see the files.
Now tell me, why can't a multi-billion dollar company do it, but a lowly, nobody use, as some people like to claim, linux can?

I did have to download the drivers using Windows.
 
Samsung netbook purchased, it should arrive on Thursday. :)

Looks like I have a bit of reading up on Linux partitions to do in the meantime.

Linux partition programs are really not that hard to understand you just have to pay attention to what your doing and know what you want. Normally you want around the following specs for partitions. Note this will vary but to give you and Idea

/boot = 500 megs
/ = around 30 Gigs
swap = the amount of physical memory usually for hibernation. Can be less if you want to remove hibernation.
/home = the rest

in your case you may want to share information between Linux and Windows. Either you need to make your home drive NTFS (if allowed) or rewrite Windows to read Linux partitions :D or you could use your Windows Home for most of your stuff but it may be a drag to keep navigating to it. When I was still dual booting I had a usb stick that I kept in the computer with most of the info I needed from Linux on it so that I could access in Windows.
 

Yeh they are a bit like Easter eggs. But most of these are not a core part of a Linux OS, you have to install them. Easter eggs are usually built into a system by the original devs.

There's another one called wargames, that goes...

mike@mike-Ideapad-S110:~ > wargames
Would you like to play a game? yes
A strange game.
The only winning move is
not to play.
mike@mike-Ideapad-S110:~ >

This is part of BSD Games, a collection of games that run in the terminal. Some of them are really old school like Colossal Cave Adventure. LOL.
 
Back
Top Bottom