Ubuntu :: "shell Script" Book From Basic To Advance?
Mar 8, 2011i am looking for "shell script" book from basic to advance. since i am novice in linux i want to play around with it
View 4 Repliesi am looking for "shell script" book from basic to advance. since i am novice in linux i want to play around with it
View 4 RepliesAs I was researching on how to create a kiosk Ubuntu setting I came upon a suggestion to create the user with '/usr/bin/screen' shell option.Hope you all would forgive me for this noob question but what does this mean? I saw when I checked the Advance Settings Advance tab that there are a couple of possible options there, what do they mean and how will they affect the user profile I'm creating? I tried google for this and if my understanding is correct, these shells are suppose to be programmable and a scripting language for linux but I'm confused on what effect this has on the user profile I'm creating?One thing I notice though is that with the '/usr/bin/screen' option, the user account is refused of the Applications > Accessories > Terminal option.When I googled each one of the options I'm getting more confused as to the relevance of this to the user profile.
View 3 Replies View RelatedI'm doing my project on shell designing, so can I know the basic shell (any shell in linux) codes using c language with few commands implemented on it.
View 2 Replies View RelatedI'm trying to create a super simple shell script, but I cant get a return line. The shell script looks like this (only the part that matters)
Code:
yes '' | ssh-keygen
The idea being it will put in a blank char. Then enter until the program finishes. The problem is, it only does the first time, the next 2 times I have to hit enter, it requires me to input it manually (which is exactly what I'm trying to avoid).
The full script (if you care):
Code:
#!/bin/sh
# Created by Omega
# First, program creates RSA key, named id_rsa and id_rsa.pub
# Second, program send the public code to requsted server.
echo 'Removing old id_rsa key (if applicable)'
rm -rf ~/.ssh/id_rsa.pub
rm -rf ~/.ssh/id_rsa
echo "Creating RSA key"
yes '' | ssh-keygen
# Checking if ssh-kkeygen created requested file
if [ -e ~/.ssh/id_rsa.pub ]
then
echo 'Done'
echo 'Username and Server in: me@server format'
read var1
echo 'Port Number? If standard put 22'
read var2
ssh-copy-id -i ~/.ssh/id_rsa.pub "-p $var2 $var"
else
echo ''
echo 'ERROR, ssh-keygen did not execute correctly'
echo 'Retrying...'
echo ''
echo 'Please leave all options default (just press enter)'
ssh-keygen
if [ -e ~/.ssh/id_rsa.pub ]
then
echo 'Done'
echo 'Username and Server in: me@server format'
read var1
echo 'Port Number? If standard put 22'
read var2
ssh-copy-id -i ~/.ssh/id_rsa.pub "-p $var2 $var1"
else
echo 'ERROR, ssh-keygen did not execute correctly'
echo 'Quitting'
exit
fi
fi
# End
I'd like to know some good resources, links, e-books to learn basic Linux system administration scripting. I know how to write very basic BASH shell scripts so I'm still at beginner level. There are so many docs out there that I'd like to narrow down people's opinion's on the best easy to understand resources that are available. Eventually I'd like to learn basic PERL as well.
View 3 Replies View RelatedThis is maybe the 15th time I've installed an Ubuntu OS in the past two years, and it's the first time I've really been stuck.Not long ago I installed 10.10, with no problems, but a couple days ago I did a fresh install of windows 7, and I planned to re-install ubuntu 10.10 alongside it.Before I installed windows, I created a partition on my 320gb HD, half and half, but while doing this I noticed that gparted would crash if a USB key was plugged in. I mention this because I'm convinced this is related to the problem.
After having installed windows, I went and created a bootable usb key with 10.10 using unetbootin (which I've used once before, but along time ago). I'm unable to make an actual live CD because my disk drive has been broken for the past year - a fact that has never stopped me from installing different distros with a usb key.So the installer starts as usual, but after the 2nd (or 3rd) step (where it says "for best results, make sure that your computer is plugged in, that you have an internet connection, and at least [...] of free space), I click forward, and the little wheel just spins forever,it never advances.I tried everything again with 10.04.1 and I got the same thing, this time after choosing my keyboard layout.
When I simply go to the live distro and then go to install, I see that at that moment, there's a crash report, something about gparted, which I'm assuming is a built-in part of the next step.
To sum up
-gparted doesn't seem to like USB keys
-installer won't advance to partition table
-can't use a disk because drive is broken!
My computer is an Acer Aspire 4530, AMD64. The 10.10 and the 10.04.1 installations were both 64bit.
No I have been on the road for some months and felt the need to buy a small notebook. I assumed it would be possible to put on ubuntu, to go back to this amazing system.It is a strange Peruvian brand and I can not seem to get ubuntu installed I feel so naive of thinking it would work. details>
brand is advance http://www.advanceperu.com series FT4006R
Intel Mobile ATOM N455 processor
harddisk 320 Gb
[code]....
I'm on Windows XP and don't have enough room on my HD to install ubuntu so I decided to put it on an external USB drive - but when I did it I didn't know about the advanced bit in the install so when I tried to boot I destroyed my MBR for windows and it wouldn't boot - so I did fixmbr from the windows recovery console and now I can boot into windows but can't boot from the USB Drive
View 2 Replies View RelatedI have an internet connection which requires pppoe setup to login with the specified username and password ip address is dynamic.Above are the screenshots for your reference for which I establish the internet connection.the pppoe settings can be done through "sudo pppoeconf" but for the screenshot No. 2.what is the procedure? I need to specify the service name for my internet connection.how to configure my internet connection.
View 8 Replies View RelatedI recently installed the VisualBoy Advance emulator using the following in the root terminal: "sudo apt-get install visualboyadvance". I also installed a ROM for Pokemon FireRed. I know the ROM works because I ran it, but a pop-up came up that told me that the 1M sub-circuit wasn't properly configured. After searching the internet, I figured out that I have to change the options/settings on the Emulator from 64K to 128K. However, I don't know how to open the Emulator because it doesn't show up under my Applications or my Installed software. where/how I can open Emulator to change the settings?
View 2 Replies View RelatedI've recently upgraded to Fedora 15 after a failed Fedora 11-12 upgrade (luckily all my data is on a seperate drive!) and have been re-installing all the applications i had before. One strange problem i've come across is with XMMS. When it gets to the end of a song it wont move onto the next one. I've tried checking and unchecking the 'No Playlist Advance' option and it has made no difference. I tried changing the output from ALSA to OSS but that didn't even play the tracks so i switched back.
View 3 Replies View RelatedI want to know if you can make a share on Samba and if you access the file you need to put a username and password in and can you save that to the server. If you can give me a step by step guide how to do it or give me a link where I can go read up on it.
View 2 Replies View RelatedI have a txt file with couple of comment lines:
Number of title = !num!
#line1
#line2
#line3
I wrote a script with "sed" to replace !num! in this file, which is very straightforward. However, based on the !num!, I want to remove the number of "#" based on the !num! value. Is there an easy way to do that with "sed"; otherwise, i will have to write a script to loop through the file.
Video player that runs on linux that allows for frame by frame advance. or that i can really really slow down . Because what i want if something that behaves like Quicktime. allowing for single frame advance.
My understanding is that VLC will never do that because it is more of a network stream ....animal.
also the player needs to play 422 uncompressed yuv yuy2 - avi or qt.
I'm currently reading through the Linux Advanced Routing and Traffic Control HOWTO from lartc.org, and I'm wondering whether anyone knows of a file where I could keep qos rules persistent across a reboot, similar to /etc/sysconfig/iptables for netfilter. Should I just write my own script, or does something already exist?
By the way, iproute-2.6.29-4.fc12.i686.
I am a new fedora user. I want to download videos from web which wee can see. In windows xp we can download it by using IDM and its advance browser integration. I have setup WINE in my PC. But I am not able to work with it. How to work with it.
View 2 Replies View RelatedMy redhat advance server got error no.15 message
View 1 Replies View Relatedi am trying to mount a pen drive in Redhat linux Advance Server 2.1As but i am unable to do that can any body help me for doing that.
View 8 Replies View RelatedAfter much installing of -devel packages one by one, ./configure finally stopped returning errors and let me move on. Well, the instructions said my next step was the command 'make' and it returned this:
Code:
[root@localhost VisualBoyAdvance-1.7.2]# make install
Making install in m4
make[1]: Entering directory `/home/myself/Downloads/VisualBoyAdvance-1.7.2/m4'
make[2]: Entering directory `/home/myself/Downloads/VisualBoyAdvance-1.7.2/m4'
[code]...
I'm running it as root, so permissions aren't the problem.
it will have a 1TB HDD with Ubuntu 10.10 Maverick Meerkat. I want to reformat the drive and do some kind of advanced partitioning. I want to have 2 installs of Ubuntu11.04, that way I can have Unity AND Gnome 3. Is there a way I can partition it so they share the home and swap partitions? (2. / partitions, 1 /home and 1 swap) How would I do that?
I will also need 2 partitions for Windows 7 which I use for work. (No, I do not want to use VirtualBox) My Windows 7 cd creates a second system reserve partition. I don't know if this will make me run out of partitions. I hear you can only have a max of 4. My idea above has 4 partitions for Ubuntu alone.
Usually when I install a sequence of tracks in the Amarok playlist, it plays them in order, advancing to the next track after each is played. But it seems now to be in some state where it doesn't automatically advance -- after completing a track, it just stops. I can manually start the next track, however. What is needed to cause the automatic advance? (I'm running Amarok 2.3.2 under KDE 4.5.1 and Kubuntu Maverick 10.10.)
View 2 Replies View RelatedRunning a CentOS 4.4 environment , and could someone advise if there's any utility which allow admin to detect the hardware failure in advance? e.g. CPU , fan, RAM, NIC..etc.?
View 11 Replies View RelatedI am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?
View 1 Replies View RelatedIs there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.
(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)
Anybody recently succeded in installing GRUB2 on Mac OSX partitions? I have to compile in un Fedora/Ubuntu/Gentoo. It work, but once back in OS X, I get this error:
./grub-mkimage -d . -o grub.efi part_gpt hfsplus fat ext2 etx3 ext4 normal sh chain boot configfile linux -bash: ./grub-mkimage: cannot execute binary file
I tried to build it in Ubuntu 8.04, gentoo and Fedora Rawhide, all fail with the same error. Look like the binary compatiility between OSX and Linux is broken in Leopard. I would love to have a faster boot, it take half a minute to get to grub, using Grub2 with EFI would take 3 seconds. As I don't need bios emulation, Fedora would also run faster. Anybody have a compiled and working Grub2? Is there a better way to use Grub2 with EFI? A working one if possible
OSX: 10.5.8
Linux: Ubuntu 9.10
Mac: MacBook Pro Santa Rosa (3 years old with a Core 2 Duo 2.2ghz)
GCC: 4.2, 4.3, 4.4
I was just wondering if there is a remote address book program or if there is a way to sync abook and gmail (without any manual intervention like Contacts->Export->csv in Gmail).
View 9 Replies View Relatedmy CRT 1080i Samsung TV has a DVI connection, and my Dell mini netbook has a VGA port, so I bought a DVI cable and a VGA-to-DVI adapter. I'm not getting anything on my TV when I plug it in to my netbook...do I have to configure anything?
View 9 Replies View RelatedIs it possible to convert the standard Ubuntu 10.10 OS to Ubuntu Netbook, so it permanently logs in as the Netbook edition?
View 2 Replies View RelatedI want to scan in a book and convert it to a pdf AND make an OCR text of it. I am looking for somebody who can help me to gie me some BASH helps to combine the pieces I have already got:
Workflow:
1. scan in the book pages: coverpage (=1), page 3, page 5, page 7 .... n (At this point the book is upside down)
2. scan in the book pages turn the book and scan from the back to the front:
back coverpage (= n-1), page n-3, page n-5 .... 2
3. run the program All scanned images are in directory scannedimages
#!/bin/bash
mkdir temppic
for i in `find scannedimages/*.png`
[code]....
how to make it, but I have no knowledge how to program it.Maybe something like that exists already and I can save the programming effort.
I was gathering some screenshots to use in a tutorial on how to do something in Unity. For the most part that went well... however I did find an unfortunate quirk.When I Right-Click any of the items in the Unity Launcher panel, and they bring up the submenu (for example I did the modification to add Pics, Docs etc to my Home Folder in the Launcher) I then cannot do a screenshot using my "PrtSc" key on my netbook. This only happens when the submenus are visible. Unfortunate because I wanted to get a screen shot of the submenus.
View 2 Replies View Related