My goal is to download a .deb package(e.g vlc) from the cmd line so that I do not always need to connect to the internet using the normal apt-get install cmdFrom the cmd line I typed sudo apt-get -d install vlc. After the operation is completed, is the downloaded file in a .deb form and where is it downloaded to?
I'm using Net::Bluetooth to create an RFCOMM socket on my Linux box. I need for it to register with SDP with a specific UUID. The perl code can be viewed in this link. I am unable to make the connection from a remote device however. This remote device (my Android phone) is able to connect to other RFCOMM devices using this UUID. I would like to troubleshoot the problem, but I can't find a way to browse the LOCAL SDP records of my PC where the Perl script is running (and waiting for incoming BT connections). how to browse the SDP records on the local PC?
I configured ldap server & client on centos,then i connected centos and suse with network.now want to get group of any user from this server via suse.is it possible with perl scripts? or i need to install other modules on suse or centos?(such as : pam,nss)
I have the following mysql query which works great.
Code: SELECT msg FROM `logs` WHERE ((`host` = 'aaa.bbb.ccc.ddd') OR (`host` = 'aaa.bbb.ccc.ddd')) AND `msg` REGEXP CONVERT( _utf8 'physical addresses' USING latin1 ) COLLATE latin1_swedish_ci I need to refine this query so that I can query the last # hours using the `datetime` field in the database. I have researched the DATE_SUB function and can query for example the last 1 hour like this:
i have a server which was handover me, it has redhat 4 u3.but i cant find the machine model no, it is hp g4 server, so this info from linux where can i see 2nd if i want to know what is the bios version and date how can i see from linux. 3rd if any hardware failing like network card, ram memory, hard disk how we come to know hardware.
I am on a CentOS 64 bit and used webmin to rotate MySQL slow query log. Now the thing is although logs are being rotated daily but the new log files being created are empty which means MySQL is unable to write them due to some reason. I have checked using "ls -l" that both permission and owner of files is same but still MySQL is not writing logs. What could be the reason?
I have Fedora11 machine : 192.168.0.3 ( Bare metal )--> vinay.linux.com Another Fedora 11 machine : 192.168.0.4 ----> test.linux.com Virtual Machine on FC11 : 192.168.0.6 ( VM )-----> centos.linux.com
I have DNS configured on Fedora11 machine, Also I have checked the connectivity of centos.linux.com to port 53 of DNS.
Here is my /etc/named.conf file of FC11 machine code...
I have a ClarkConnect (CentOS based) box running as my home router on a RR connection. I had the DNS servers set up to use Google's DNS server. I want to change them back to the local DNS servers but I can't find an obvious/easy way to get those address short of a) reconfiguring the router's network to DHCP them (would rather not interrupt everyone) or b) calling their tech support (kill me now!). Is there a command line tool/command I can use to query the DHCP server on the external NIC to see what DNS servers it would set me up with w/o munging my existing setup?
I am connecting to MySQL DataBase using shellscript and writing a select statement like select attachmentid from attachments where pageid=10175 I want to store the output of the select statement into a shellvariable or a file. How can i do it using shellscript.
Now i have to writ a script which takes this log as input and quesries the DB for each table. So,I want to: input the logfile start a while loop.So,while read LINE This variable LINE would store the table name by CUT using a delimiter once the table name is ready it makes a connection to DB and queries the table for its rowcount writes the rowcount to an O/P file.
I am using "if" to force a word under the condition that the first letter of that word must be a letter of the alphabet, regardless of capitalization, using the " "" != "" " syntax.
Like so:
Code: if [[ "$interface" != "WHAT DO I PUT HERE?" ]] ; then echo "Invalid input" exit 1 fi
I have inherited our Linux packaging and as the number of versions increase, the number of conflicts is starting to get a bit unmanageable. I believe the easiest way would have been to keep the package names the same and just change the release in the spec file but unfortunately I am past that as a lot of these packages are rolled out to our estate. (I am told there were reasons for not keeping the package name the same and incrementing the version/release)
Is it possible to wildcard conflicts so I don't need to keep adding as new versions are created. For example, instead of using all the conflicts below, have something along the lines of AAtest45* <= 1.4 & BBtest45* <= 1.4 Meaning that all I would need to do was change this to 1.5 at the next release (the packages below version matched the release in the spec file)
I am running Ubuntu 10.04 LTS. I am trying to run a query browser for mysql but keep receiving the following error:
X11 connection rejected because of wrong authentication.
The application 'mysql-query-browser-bin' lost its connection to the display localhost:10.0; most likely the X server was shut down or you killed/destroyed the application.
I just purchased a new server and loaded it with Ubunut server 10. I installed apache2, php5, and mysql5. apache needs a little bit of configuration left (I need to tell it to accept index.php in addition to index.html), but other than that, all the php is working. MySQL is working as well, at least on the server. If I do a "show databases;", it shows all the databases properly. I loaded phpmyadmin on the server for testing, but I'll be removing it once everything works - this is my production server. phpMyAdmin can find all the tables, perform successful queries, and do everything I want it to, HOWEVER If I try to use the login page, I get the error mentioned in the title of this thread.
The database is a carbon copy from my development server, which works flawlessly. All the php and html pages are exactly as they are on the development server too, yet I still get that error. I've reloaded all pertinent programs (apparmor, apache2, and mysql). Apparmor was because I had to declare some new lines for mysql to access a different location for the DBs I resolved the "can't load InnoDB issue", but this one is stumping me.
I have a BASH script which at one point asks the user a yes/no question. I want to make it so that if the user types in an invalid input 3 times consecutively then the BASH script will echo an error and terminate with exit status 1.
Quote: select * from s_transaction Where between UNIX_TIMESTAMP('2010-06-28 15:40:00') and UNIX_TIMESTAMP('2010-06-28 16:00:00') and user_id = '15545941';
Is this the syntax correct to retrieve a particular user transaction between given time period? because "its return error check the syntax near the between"
when I go to download 11.3 I am presented with the installation medium for a DVD installation with a button that says download DVD. Should there be an option to download an ISO option for a CD installation on this page along with the DVD version? Some of our older machines can only read CD's with a max size of 500+ megs.
I installed Maverick with auto login. One could undo this by reinstalling I suppose, but is there an easier way to get back to the standard form of login?Hopefully that will cause my default key ring to unlock correctly.
We do use kickstart configuration file to customize the CentOS installation. In the partitioning screen, I do see a check box for encryption (encrypting the disk blocks).
I want to remove this checkbox in my kickstart configuration file. What is the option to use to get rid of this checkbox.
when I run netstat -s I get a whole listing of different statistics on udp/tcp. what I would like is to be able to understand those terms e.g. TCPLossFailures and link them with the appropriate TCP/IP terminology. There must be some refernce guide somewhere that shows what these fields mean or what they are tracking.
Ubuntu Server 9.10I want to set up my dhcp server to also be my DNS server so do I skip these lines or point them at the same server that the config file is on?
I've tried to use workbench but it's such a big step backwards in that you can't easily edit the output from a "select x,y,z from table" query. I'd have thought that was a pretty basic requirement...
I recently been given my dad's old netbook which is a toshiba nb100
I installed Ubuntu Netbook Edition onto it as i have some experiance with linux and have used ubuntu before and thought it would speed up this little machine. After the initial grind of the instal, it seemed to be running fine, however i didnt really like the netbook layout.
I noticed on the log in screen that i could select the desktop or netbook edition, is that normal? i have been using the desktop version since.
I have been doing some research however into the 11.04 release that is almost ready, and is ready in alpha stages. And what i understand is that the netbook layout is called Unity, and will be replacing gnome.
If and when i upgrade to 11.04, if i upgrade on the netbook login, will it replace both the logins i have access to currently, because the ubuntu install is changed and that was basically just choosing which display to use, unity or gnome. is that right?
Also i heard that for the 11.10 release they will be bringing the gnome desktop back? and that ubuntu netbook edition is being scrapped as they are basically merging
At the moment i prefer the desktop layout as i know where to access everything, although im sure i could get used to Unity, if its not too graphically demanding.
Either way i think i will wait till the end of april to upgrade to 11.04 as this laptop is fairly slow to begin with.