Ubuntu :: Custom Commands Before Login Time In Lucid?
Jul 24, 2010
I would like to run a few custom commands when booting: "xinput" to calibrate the touchscreen and a couple of "setkeycodes" to make special buttons responsive.
From within a session I need to do "sudo setkeycodes [etc]" - without root access there's a "couldn't get a file descriptor referring to the console" error message.
Ideally these commands would already be operational at the login screen, and without requiring entering a root password every time.
I've put the commands in an otherwise empty /etc/rc.local but this does nothing. Other posts mention bootscript.sh but I don't get how this is used; and the best way to do this seems to have changed between versions - so what's the proper Lucid way?
View 3 Replies
ADVERTISEMENT
Nov 11, 2010
My machine is taking ages to get from the login screen after booting to actually showing the gnome desktop (as in, over a minute). The bootchart is at golg-lucid-20101111-1.png
View 1 Replies
View Related
Apr 26, 2011
I'd like to know if there is a way to define commands in the .bashrc or .bash_profile. For instance, I want to be able to type 'work' in a terminal and set up an interactive work environment on my universities cluster. (This is done with the command 'qsub -I -X'.) I tried the following in my .bashrc file:
alias work ='qsub -I -X'
But, of course this failed, as I don't have a command work already defined. How do I go about doing this? Also, I can't assign 'qsub' an alias, since it's used with different options quite extensively.
View 5 Replies
View Related
Apr 29, 2011
So I'm here thinking how to create custom commands on my Linux Debian? I mean so i could open up terminal and just type the script name (and possibly some arguments) and it would refer to the script in my home directory. Otherwise I've write the whole path to the script each time and it gets annoying.
View 2 Replies
View Related
Apr 18, 2011
I found that Linux Ubuntu has custom keyboard commands.his is awesome.What I'm trying to do, is make a command that will shut down the computer with a single button with no dialog windows.For you know, being grounded nd stuff.I found the command for it is "shutdown" with a few options.But when I tested it, being bound to pause/break, it did nothingAm I writing the wrong code, as I'm not using any options, or is this not possible?
View 7 Replies
View Related
Jan 11, 2011
I'd like to add custom startup commands (for example starting a process, registering to a registration server, downloading a configuration file) to the Linux startup process. Those commands should be triggered on startup only. What is the standard/appropriate way to do this?
EDIT: Is /etc/profile the right place to trigger such things?
EDIT2: I'm using Ubuntu.
View 4 Replies
View Related
May 3, 2010
I started out with Kubuntu RC, then installed ubuntu-desktop and updated all the way to the current state of packages.Anyway, from the moment I installed the RC, from time to time the boot splash appears, the dots light up/turn off and then the booting hags. No key seems to work.I the do a hard reset and everything works just fine.As not to open another thread:- how can I see the Ubuntu splash screen? (currently I can see the Kubuntu one)- how can I turn the splash off and have it boot in text mode?
View 3 Replies
View Related
May 11, 2015
I didn't change anything; it just stopped working on boot. I've changed permissions according to messages from log files. No good.I now get messages saying "unable to open display ' '." If I set the display (I've done this several ways, the messages say "unable to open display ':0'."
Systemd is taking control of everything basic, with almost no documentation and no configuration tools at all: rationalization by lunatics.You can make a script to run commands on boot using systemd on Jessie by creating two files: the script, in any location a file in /etc/systemd/system that runs that script..My script is called james-boot.service, placed in my /home/james/.bin directory.
#! /bin/sh
# this is run by /etc/systemd/system/james-boot.service
# Enable with sudo systemctl enable james-boot.service
# Check with sudo systemctl status james-boot.service
# If it says the service is loaded, it's OK -- inactive only means it's done running.
[code]....
This file must have ownership root.root, with (apparently) permissions 664 (rw-rw-r--).After creating, enable with sudo systemctl enable james-boot. service.Check with sudo systemctl status james-boot.service. If it says the service is loaded, it's OK -- "inactive" only means it's done running.
View 4 Replies
View Related
Apr 29, 2010
When you install Ubuntu, you will typically install a complete desktop environment. It is also possible to install a minimal set of software (just enough to boot your machine) and then manually select the precise software applications to install. Such a "custom" install is usually favoured by server administrators, who prefer to keep only the software they absolutely need on the server.
I have never personally noticed any sections in the install to allow you to do a custom minimal install, is this possible in Lucid?If so how, or do I need to download just a mini install iso?
View 6 Replies
View Related
May 21, 2010
I was wondering if theres a way to make custom themes in lucid. when i had windows Xp i used High Contrast 2, is there a way to make it similar in ubuntu?
View 2 Replies
View Related
Jul 3, 2010
After troubleshooting the lockup problem on my installation of Lucid, I want to wipe the thing and reinstall. I have an integrated Broadcom wireless chipset that I want to integrate the firmware into the new Lucid install disc, along with Nvidia's 180.06 drivers for my GeForce4 440 Go (yes, it's an old machine). I need to build this from XP though, since my current Lucid install is to the point of unusable.
Is there any good way to do that? With XP builds you can use nLite to slipstream just about anything into a clean XP install, including all available hotfixes, extra drivers and a few applications. Is there a similar program for building Ubuntu installs that can do that as well? Also, if I download a new ISO of Lucid to build from, will it have all the current updates integrated, or it be up to me to do it? Edit: just realized I posted this under the wrong topic.
View 1 Replies
View Related
Jan 10, 2011
I created a custom linux distro that originated from ubuntu server and I installed time-admin and want to change the time without admin rights. Is this possible?
View 1 Replies
View Related
May 5, 2010
with top column TIME+ (second from left). On my box, there is values like 12786:26 (part of them copied above).
10955 postgres 21 0 58496 41m 36m R 30.2 0.2 4326:43 postmaster
19105 postgres 25 0 58496 41m 36m R 28.9 0.2 2389:22 postmaster
13587 postgres 25 0 57324 40m 36m R 27.6 0.2 12786:26 postmaster
View 6 Replies
View Related
Apr 30, 2010
After installing the newest ubuntu, 10.4, i have noticed that I cannot set a custom login screen like i could in previous versions. Is there a work around for this?
View 9 Replies
View Related
Dec 23, 2010
I used sudo mv and Ubuntu tweak to customize my login screen -end result: a white login screen with a flashing rctangle in the middle - where I click my username.I cant login, which sux...Is there a way to use command line (or live CD?) to revert to a regular background jpg file, in home/usr/share/background?I am using Natty, and hope to sign-in without having to reinstall.
View 4 Replies
View Related
Aug 15, 2010
While typing commands it takes more time to type.let me know on how to correct this
View 3 Replies
View Related
Sep 22, 2010
I have been trying to figure out how to automatically run terminal commands on login. For example, I want to run Firefox on login. When I run 'firefox' in terminal, it opens. This is what I tried:I went to System > Preference > Startup Applications and clicked on 'Add'. I gave it a name, typed 'firefox' into the command field and left the comment blank and added it to the list, making sure that the box was checked.
View 1 Replies
View Related
Jun 10, 2010
I am backing up data from a remote server onto a local ntfs partition. It seems that the rm -rf and cp -a commands are taking a long time to complete in what should be short, incremental backups.Has anyone had similar problems when backing up to an ntfs partitionHere is my rsnapshot.conf:
Code:
#################################################
# rsnapshot.conf - rsnapshot configuration file #
[code]....
View 5 Replies
View Related
Mar 2, 2011
There is a shared account (not by choice, and not my choice). I ssh into it, along with many other users.Some users share the password, others use the public key method (each user has their own pair of keys).I have a number of shell preferences that I would not want to affect other users. So changing .bashrc, .profile, .kshrc, etc types of scripts in the shared account is not practical, because changing them would affect everyone. What would be a practical way to have a script execute automatically, only when logging in by way of my private (id_rsa) key? Could I perhaps change the .profile in a way that it runs some commands only if my public key was used to authenticate the login?I've considered this:ssh sharedUser@host 'bash -s' < my_local_script.shbut it simply terminates when done. I want it to hand the shell over to me.Also, when many users are logged in, the "w" command shows several users with the same shared username. Is there anything I can do to make my own session distinct? E.g. instead of showing username "sharedUser",
View 3 Replies
View Related
Feb 5, 2010
I made a small script to passwordless login to server with sshgnome-terminal --command "ssh myserver"I can login but i want to execute a command, lets say a "ls".So when i doubleclick the script it should login (which works) and gives me a listing (ls) on that server.gnome-terminal --command "ssh myserver" ---> and then execute ls on that server.
View 1 Replies
View Related
May 2, 2010
lucid takes much less time to boot, but my boot time is considerably higher( almost 50 sec) is there any settings that can be changed to improve that?
View 9 Replies
View Related
Dec 10, 2010
I added the following line in /etc/sudoers file
<username> ALL=(ALL) NOPASSWD:ALL
after adding this if I run any command it is not asking for the password. Now I need to shutdown the remote machine with sudoers user.
View 6 Replies
View Related
Jun 24, 2011
I'd like to measure network latency for SNMP GET request. There is a free command line tool time which can be used to find timing statistics for various commands. For example it can be used with snmpget in the following way:$ time snmpget -v 2c -c public 192.168.1.3 .1.3.6.1.2.1.2.2.1.10.2IF-MIB::ifInOctets.2 = Counter32: 112857973real 0m0.162suser 0m0.069ssys 0m0.005sAccording to the manual, statistics conists of:
the elapsed real time between
invocation and termination,
the user CPU time (the sum of the
[code]....
View 3 Replies
View Related
Oct 8, 2009
I'm trying to learn Linux by myself and i have a list of projects. for this project i have to use the grep command to show all failed login's attempts in my machine.
I believe the attempts are saved at /var/share/messages.log but i cannot figure it out.
View 1 Replies
View Related
Mar 19, 2011
I am trying to write one script. Purpose of my script is that it will login to particular user and it will execute some set of commands.What I was trying....
#!/bin/bash
su - tom
ls -lrt
[code]...
View 6 Replies
View Related
Jun 27, 2010
I didn't quite know how to describe my problem in the title. I installed Lucid i386 on my wife's PC two days ago. I updated all programs from the update manager. This PC uses a usb Wifi adapter for internet. When I boot the PC, the internet works. But after one or two hours, the networking capabilities disappear. In the network list in the panel there are NO networks listed, and the only way that I have been able to restore the ethernet is to restart the PC. What can I do to correct this?
View 3 Replies
View Related
Sep 25, 2010
I have the latest release of Lucid Lynx installed. I want to try out audio recording on Linux so I want to know if it's possible to use a real time kernel with Lucid. So I installed the 2.6.31 real time kernel. It shows up in GRUB, but when I boot it gives me the message:
mounting none on /dev failed No such device
It then takes me to the login screen, and once I enter my password it just takes me back to the login.
View 1 Replies
View Related
Apr 2, 2010
I dont know were to begin to solve my problem and I have been googling for hours to get a hint without any success. I'm runnning a Counterstrike Server on my virtual openSuse server - I'm exploring so don't justify what I am hosting at the moment
I want to make it possible to gain access to the cstrike folde via a ftp login. But I really have no idea were to start. The server is also a webserver, where I can ass FTP accounts for my apache vhosts via plesk - but I dont think this is the solution of my problem, isn't it?
View 2 Replies
View Related
Sep 7, 2010
When there is no user home directory and user logs in it's created using /etc/skell as a template.Is it possible to attach custom script to that "first time log in" event?
View 6 Replies
View Related
Oct 31, 2010
why the user created at installation time is a Custom User instead of an Administrator.
View 4 Replies
View Related