Debian :: Stty Command In /etc/rc.local

Jun 16, 2010

Using serial terminal(emulated) to connect to linux box. In order to fix row/column count I added stty command in rc.local:

Code:
stty -F /dev/ttyS0 rows 56
stty -F /dev/ttyS0 cols 110

If I add it in redhat's /etc/rc.d/rc.local - it works fine. But if I add it in debian's /etc/rc.local - it doesn't work. I checked by redirecting some output to /dev/ttyS0 - rc.local gets executed and stty commands are executed also - but for some reason rows/columns dosn't change after I login. If I execute rc.local by hand - stty commands work.

why this works on redhat but not on debian ?

View 1 Replies


ADVERTISEMENT

Debian Configuration :: Run A Command At Bootup Earlier Than Rc.local?

Jan 28, 2010

i rarely need my wireless, and i want it off by default, i am going to disable it during bootup with

echo 0 > /sys/devices/platform/acer-wmi/wireless

what would be the proper place for this? if i put it in rc.local it will be executed very late, i'd rather have it sooner. if add a new script to init.d, then run update-rc.d, i would have to adhere to the start|stop|reload structure of these scripts, right? or do i go a totally different way about this?

View 2 Replies View Related

Debian :: Set System Time To Local Region Using Tzselect Command

Jun 14, 2011

i have a debian 5 vps system.. it reports the time as beeing one hour behind, i have tried to change this by setting the time to GMT+1 and setting the time to my local region (Europe-Brittian) using the tzselect command but none get the time to the correct time, one hour ahead of the current time.

View 3 Replies View Related

Software :: Stty -F Does Not Use Specified Device?

Mar 11, 2011

I have a java program that opens /dev/tty6 and writes vt100 escape sequences and characters. The problem is that the terminal is echoing the control keys that are typed on the screen. I have tried to use "stty -F /dev/tty6 -echoctl to turn it off but this does not work - "stty -a -F /dev/tty6" shows echoctl is still in force. If I try the stty command in another terminal without -F "stty -a" properly reports -echoctl. It just seems that the -F parameter is not getting the setting to the proper tty. There is another note that I reduced the number of mgettys so that /dev/tty6 has no bash running in it. It's just a blank screen when I ctl-alt-f6 to it before writing to it with my program.

View 5 Replies View Related

Ubuntu :: Trying To Change Baud Rate With STTY

Oct 30, 2010

I am using the command:
Code:
sudo stty -F /dev/ttyUSB0 115200
to try and change the baud rate from 9600 to 115200 on device USB0, but I keep getting this error.
Code:
stty: /dev/ttyUSB0: unable to perform all requested operations
ttyUSB0 is not locked, and I know it is capable of 230400 b/s so I know it should handle 115200 just fine.

View 9 Replies View Related

Fedora :: Running Servers On Local System From The Command Line?

Oct 23, 2009

How would I find out what servers are running on my local system from the command line? I cannot find out how to accomplish this anywhere?

View 3 Replies View Related

Fedora :: How Many Packages Installed Through YUM Command Prompt In Local System

Apr 20, 2011

Recently I have installed FC 14, I need to know how many packages installed through YUM command prompt in local system.

View 2 Replies View Related

Ubuntu :: Command To Remotely Shutdown A Computer On The Local Network?

Mar 17, 2010

Is there a command to remotely shutdown a computer on the local network? I have a computer running as a file/print server and I have no screen or keyboard connected to it. Would be great if I could shut it down from my laptop. I have the needed credentials (as I'm guessing these would be needed in the command?)

View 2 Replies View Related

OpenSUSE Network :: Ssh Into Local Virtual Machine - Command Doesn't Work

Jul 18, 2011

I have an appliance called my_appliance.raw. To start the appliance locally, I use:

[code]...

After that I would like to ssh into the guest from the host but just the ssh command doesn't work. firewall is disabled on guest. the ip I use is the one that ifconfig shows when I run it on guest. sshd is running.

View 2 Replies View Related

Ubuntu :: Mount Command No Longer Runs At Boot From /etc/init.d/rc.local

Jul 6, 2010

I run XBMC media center software which is built on a minimal Ubuntu install. I was running a version built on Karmic and I had the following line in my /etc/init.d/rc.local and it always ran without a hitch:

Code:

mount -t cifs -o file_mode=0777,dir_mode=0777 //192.168.1.20/disk7/xbmc_thumbs/Thumbnails /home/kevin/.xbmc/userdata/Thumbnails

Recently, I upgraded to a version built on Lucid and now that fails to create the mount on boot up. Here is the entire contents of the file:

Code:

#! /bin/sh
### BEGIN INIT INFO
# Provides: rc.local
# Required-Start: $remote_fs $syslog $all

[code]....

View 1 Replies View Related

General :: Create A *one* Line Command That, Using Tar, Will Collect The Full /usr/local Directory?

Oct 6, 2010

I am currently interning at a place and my job is to essentially learn UNIX. My supervisor gives me problems here and there to help guide me with my learning but for the most part I'm doing this all by self-teaching myself. Needless to say I have run into a few obstacles...for instance-Create a *one* line command that, using tar, will collect the full /usr/local directory (you need to run this as root again) and copy the whole /usr/local structure under /optFor example /usr/local/bin/hello will become /opt/local/bin/hello, etc. I want this as follows:1. /usr/local is collected by tar, but the output of this tar command is its stdout.. what you get from the previous stdout, you compress with gzip and send it to stdout again 3. get this output and decompress with gzip.. get this output and pipe to tar in a way that will extract the tree under /opt.If anyone knows how I could go about doing this, please let me know, or at the very least point me in the right direction. What I've got so far (which could be completely wrong) is:tar cvf - usr/local/ | gzip -c - | gunzip -c - | tar xvf -in theory I feel like this should work (except for extracting the tree under /opt...i'm kinda stuck there)

View 3 Replies View Related

Slackware :: Command To Create Local Mirror Of Alien Bob's Kde4.4.0 Packages?

Feb 10, 2010

I know there has to be an easier way to do this than to download each file individually. On an ftp site I would just use
PHP Code...

But with those files being on an HTTP server and wget not supporting HTTP file globbing I'm at a loss.

What is a one step method to recursively download all files in a directory on an HTTP server?

View 5 Replies View Related

General :: Use Mkdir Command To Create 'local' Directory In /usr - There Are Error - Cannot Make Directory

Jun 16, 2010

I am a student studying computer science course.

Well, I am facing problem when doing lab questions.

I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).

I am required to use the /usr/local directory.

In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".

Look at my screenshot at [url].

View 9 Replies View Related

General :: Scp Command - Copy File Into Local Computer By Still Sitting In 1st Computer

Jun 17, 2011

I am using fedora 10 in two computers. Just for my own practice I sent a file to my second computer.

1st computer IP is 192.168.1.10
2nd computer IP is 192.168.1.20

[Code]....

The file has been successfully copied to the second computer but I again want to copy that file into my local computer by still sitting in my 1st computer.

[Code]....

View 1 Replies View Related

Debian :: How Apt Use The Local Repos First

Feb 24, 2011

I have local repo as well the debian official repos enabled in the apt sources.list, but when i run the aptitude to install some packages, it doesn't use the local repo and downloading the same version of package again that is already present in the local repo, this is my local repo url: [URL]

View 10 Replies View Related

Networking :: Does The Command "telnet" Works When Remote And Local Are Different Operating System?

Feb 12, 2009

Is it possible to log into a remote windows computer from my local linux computer and vice-versa using the "telnet" command?

View 2 Replies View Related

Debian :: File Run Only From Local Folder?

Mar 31, 2010

I have an exe-File called 'pas'.The file run wihtout problem when I call it from the same folder . For example:

$ ./pas
But when I call it from another folder, it does not run. For example:
$ software/pas

View 4 Replies View Related

Debian :: Map A Networklocation As A Local Drive?

Oct 11, 2010

Is it possible to map a networklocation as a local drive? Some software does not allow to fill in networklocations in the Save As box.

View 1 Replies View Related

Debian :: Creating Local Repository From 5 DVD Set

Jan 6, 2011

I freshly installed debian lenny using the 5 DVD set that I downloaded from debian.org. I want to create a local repository for all packages that are available in DVD so that I do not insert the disc everytime I install a new software. I have searched various forums but not able to figure the right way to do it.

View 1 Replies View Related

Debian :: Pulseaudio Rtp Local And Remote Listeners

Mar 18, 2016

I am trying to stream audio from one machine to several others via pulseaudio.

Following a bit of digging, I configured the "sender" with:

load-module module-null-sink sink_name=rtp
load-module module-rtp-send source=rtp.monitor rate=48000 channels=2 format=s16be

..and the "listeners" with: load-module module-rtp-recv

Then, playing on the sender, and using PulseAudio Volume Control /Playback to set "Null Output", my listeners all start working as expected. The outstanding problem is that the sender is silent - nothing from its speakers. Perhaps not surprising after the "Null" setting above.

Is it possible to stream like this and also listen on the sender at the same time -

View 6 Replies View Related

Debian :: Delete Old .deb Packages From Local Archive?

Feb 5, 2011

I have slow internet connection so i keep each .deb package i download in my local archive for next installations, now there is a collection of some older and new versions of the same packages in my local archive, is there any way to delete the older versions and keep the latest one in my local archive.

View 1 Replies View Related

Debian :: How To Disable Root Local Login

Jun 23, 2011

I would like to know how can Debian prompt my user instead of the root account after booting.

View 2 Replies View Related

Debian Installation :: Installing From A Local Partition?

Jul 8, 2011

Is it possible to partition a hard drive with Debian already installed and put a live disc image in the second one and use grub to boot it. Then using this boot to the installer and install to the first partition.The answer for why I want to try this is that I have a computer that runs a robot that needs Debian. There is no CD, USB, or internet currently on the drive. there is an Ethernet plug, but It won't work until the OS is in place. We tried taking the hard drive and installing Debian to it from a USB stick on another computer, but it has the wrong Ethernet drivers and we can't get it to talk to the internet on the robot's computer.

Everything else is fine, but with out an internet connection the robot will not work.If your interested the board is an old Versalogic VSBC-8 and the robot is a Pioneer 1 from Mobile robotics. The hard drive (not that it matters) is a standard 80GB IDE notebook drive from Western Digital.

View 4 Replies View Related

Debian :: Setting Up Local Intranet Server?

Jun 4, 2010

I have been trying to set up an old pIII 700Mhz PC as a local intranet server to run some PHP code.

I have got debian installed setup ssh since it is a headless computer mounted a usb hard drive to store the web page remapped apache2 to use the /mnt/sda1/html/ folder and tested that php scripts are running

now what i can't seem to get working is the following:

ftp access to /mnt/sda1/html so I can upload files from my pc on the network and

phpmyadmin so i can easily manipulat mySQL databases.

after reading [URL] I typed in #apt-get install phpmyadmin

it downloads a bunch of stuff and says it is installing it but when i do the next step in the instructions go to

http://192.168.0.100/phpmyadmin/

I get a 404 Not Found error.

View 3 Replies View Related

Debian :: How To Build A Local Email Server

Jun 27, 2010

I need to setup a local email server. This mean, I send an email to admin@localhost and in thunderbird or any other program I receive it.

I need this to test a php script.

View 1 Replies View Related

Debian Configuration :: Running A Local Ftp Server?

Nov 2, 2010

What would be necessary to run an ftp server (or a web server) on my local PC so that other people I know could access it and download stuff from it? The idea is to share photos, videos etc with friends/family where the files are a bit too big for email. (All 100% legal, own-content, no copyright issues, needless to say). Security isn't that vital, I'd just put files in the ftp directory, email the link and let them download the files, then remove them again. No passwords are required, and no uploads.

Obviously there's the problem that both computers have to be on at the same time, and I assume I'd have to change my computer's firewall settings and my router's settings to allow the traffic through, but my question is more basic than that - is it even possible? My internet connection is through a router, and as I understand it, my router has the IP address, not my computer. So I can connect through my router using my computer's IP address, but only my router knows my computer's IP address, and all the rest of the internet just sees my router and its IP address. Which means (I think) that I can't just send my IP address for my family to connect to, because that only gets them as far as my router, and the router would have no idea what to do with such requests. Am I right so far?

So is there any way for my family's computers to contact an FTP server or a web server running on my computer? Or does it require some kind of intermediary server to act as a traffic-forwarder? Is there such a thing? I'm assuming that setting up little private torrents would be fiddly and inefficient. Or would it be better/simpler to use one of the free filesharing services and put up with the (sometimes not too family-friendly) adverts associated with them?

View 12 Replies View Related

Debian Configuration :: Cannot Connect To Anything On The Local Network?

Dec 24, 2010

Two nights ago I decided to switch from testing to unstable. Since then I am able to connect to the internet, but not to anything on my local network. I am unable to ping this computer from another one on the network. This computer is connected through wireless. I thought that something might have changed with iptables that was blockinghe localnetwork. I tried to "flush the iptables settings with "iptables -F". Since that didn't work I uninstalled iptables (which didn't work and I reinstalled iptables). In my browser I tried to connect to my router and that doesn't work either.I connect to this computer daily through ssh and connect to a NAS. Without ssh and my NAS I feel kinda lost

View 6 Replies View Related

Debian Configuration :: Configuring NTP SRV In Local Client?

Jan 5, 2011

I'd like configuring NTP service on my Lenny Debian client to retrieve time from my local NTP server, so I thought to configure /etc/ntp.conf and to insert into crontab this command 'ntpd -qg', which is indicated in man. Can I run ntpd service to synchronize time for my client, avoiding to listen on port 123, beacuse my scope is to alignment time on client and to not give service to others, for this scope there is ntp server !

View 1 Replies View Related

Debian Configuration :: How To Set Up SSH Server Between Local Computers?

Jan 15, 2011

I can't get past the "scp -p id_rsa.pub" step; ssh fails with "Could not resolve hostname" errors. Both machines are connected with a hub. I've also tried using the IP address in the place of hostnames with no avail. Both machines can ping eachother successfully.The server has the "openssh-server" package installed.

View 1 Replies View Related

Debian Configuration :: Reroute Domain Name To Local IP?

Mar 10, 2011

Backround:

I'll have 2 routers:
- ADSL-router (D-link DSL-2640U)
+ NAT on (needed as one static IP from ISP)
+ Server's IP as 192.168.X.xxx
+ router firewall port-forwards set for needed ports (21,22, 80 etc) to 192.168.0.xxx - 2nd LAN-router

[Code]....

Is there any setting/file on Debian-user-machine, where I could fix that abc.mydomainXYZ.com/defg is always in something to do with 192.168.X.xxx

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved