[SOLVED] Can you wrap commands for sudo?
Is there a way to wrap commands for use with sudo, such that my below command would work:
$ sudo (pacman -Sy && pacman -Su)
bash: syntax error near unexpected token `pacman'
Note: The above is just an example of what I want to do, I would normally use 'pacman -Syu'
Last edited by deltaecho (2008-09-15 06:18:24)
You could simply alias it with pacman. This is what I do, and I know I'm not alone.
In .bashrc:
alias pacman='sudo pacman'
And I also have it set to not ask for a password with pacman in my sudoers file.
Similar Messages
-
Hi, can you help me for my payment account? It's always show " Your payment method was declined..." How can I fix it? There's only 3 to choose fpr Visa, Master Card and Amex.. But doesn't have "None".. I can't download any apps from app store
http://support.apple.com/kb/ht1918
-
i have an ipad 2 and want to get a wireless keyboard so my daughter can practice typing? can you get them for ipad 2?
Yes, there are lots of Bluetooth keyboards available for the iPad 2. Logitech and Zagg have several.
-
How can you get audio for books on the kindle
how can you get audio for books on the kindle
The audio inputs on Macs are line level inputs and not mic inputs. You need a mic with a built in preamp (battery powered) or more conveniently a USB mic or bluetooth headset.
-
Adobe Acrobat 9 Pro V9.4.0
Win7 Pro x64
Problem: In Initial View, can you set defaults for Navigation tab, Page layout, and Magnification?
Every time Acrobat scans a document, I have to go to Initial View to set Navigation tab, Page layout, and Magnification. It does not remember the settings I last used.
Thanks in advance.See my response to this post
-
Can you make captions for a slideshow?
can you make captions for a slideshow? otherwise how can i rename the photo so that i can select view titles in the slideshow and use it as a caption?
Jim lo:
Welcome to the Apple Discussions. You can't make captions with iPhoto. You can edit the title of a photo by selecting it and then going to the Info window at the bottom of the Source pane, the "i" button, clicking on the title field and enter what text you'd like.
If you plan on using the slideshow in iDVD then those titles will not show as they will be lost in the "overscan" area that is common to all movies played on TV. You can create the slideshow in iMovie and have lots of control over titles and subtitles and greater control of the audio track, cut, fade in/out, etc.
Do you Twango? -
When you make a Apple ID how can you choose none for credit card type
When you make a Apple ID how can you choose none for credit card type
You need to follow the instructions on this page when creating a new account : http://support.apple.com/kb/HT2534 - otherwise you won't get the 'none' option and you will need to enter credit card details before you will be able to use the account in the store
-
Can you use wallpapers for the icons on the iphone 3g? If so, How
Can you use wallpapers for the icons on the iphone 3g? If so, How
On the Mac to save a picture from a web page <CTRL> click on the picture then choose Save Image As... and save it onto the desktop. Once you have collected all your pictures onto the desktop open iPhoto and Import all the images into an iPhoto Album. Quit iPhoto.
Open iMovie, then go to the Toolbar along the right side of the iMovie window and click on the camera icon to browse through your iPhoto Library. Find your pictures then drag them into the Project Browser window. -
Can you purchase iMatch for an iPod classic?
Can you purchase iMatch for and iPod Classic? It doesn't make that clear when reading the advertisement for the service.
Thanks for your help!The iTunes Match service is attached to your iTunes library, not the device itself. Hopefully the tracks on your device are also all in your library, and the backup of it, however iTunes Match might still be an additional backup and remote access service if it suits your needs. It has more use to owners of iOS devices who can download any of their matched tracks from iCloud to their device on demand.
tt2 -
Can you get 3G for an Ipod touch 4
can you get 3G for an Ipod touch 4
No. The iPOd can only connect via wifi and BT (but very limited). The iPOd is not a phone. It does not have cellular capibility.
-
Use Firefox for sensitive data & use a virtual keyboard plus internet antivirus. This current version does not allow such or an extension . Can you make provision for this?
Use Firefox for sensitive data & use a virtual keyboard plus internet antivirus. This current version does not allow such or an extension . Can you make provision for this?
-
My iPod speaker is broken, i bought it one year ago, can you fix that for free?
my iPod speaker is broken, i bought it one year ago, can you fix that for free?
You are not address ing Apple here, we are all just users like yourself.
If the headphones work but not the speaker:
- Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
Try the following to rule out a software problem
- Reset the iPod. Nothing will be lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup
- Restore to factory settings/new iPod.
If the speaker still does not work, make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
Apple Retail Store - Genius Bar
If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours. The Apple warranty is for one year unless you purchased the optional Applecare extended warranty
Apple - iPod Repair price
A third-party place like the following will replace the jack for less. Google for more.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
Replace the jack yourself
iPod Touch Repair – iFixit -
Can you run Entourage for Mac 2008 v12.1.0 on Mac OSX 10.8.2?
Can you run Entourage for Mac 2008 v12.1.0 on Mac OSX 10.8.2?
Office 2008 will run in Mountain Lion including Entourage.
-
Can you get iChat for windows or is it just for macs???
Is iChat just for mac's or can you get it for windows?? and if so how?
Hi
AIM 5.9 is here
They do need to be using XP
They do need to "tune" the camera and mic to the AIM Application
They need to allow the application as an exception through the XP firewall
http://www.ralphjohnsuk.dsl.pipex.com/page12.html#_Service
This site says it in a lot more detail
http://www.mvldesign.com/videoconferencetutorial.html
If you really want to make this work.
Page 5 on my site lists other options of Mac to PC video chats including the Skype option
10:21 PM Wednesday; February 14, 2007 -
Can you access paid for apps/movies from iTunes on another device if you have not synced? I purchased movies on my new iPad, but need to delete some off as have no space left. I have not synced the movies I have purchased on my iPad to any other devices as yet and want to know if I can retrieve the movies from iTunes later if I removed them now without syncing first? I do not want to forfeit my purchases.. Please help!
Welcome to the Apple Community.
You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option which is revealed in the iTunes app on your iOS device by tapping the more button at the bottom of the screen.
If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.
Try deleting the problematic book (electing to remove original file if/when prompted) and then re-downloading the file from the iBook store.
You can re-download content purchased from the iBook store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
You can re-download content purchased from the iBook store (availability varies depending on location) using the purchased option at the bottom of the screen after you tap the store button in the top corner of the iBook app on your iOS device.
If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.
You can re-download content purchased from the app store using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
You can re-download content purchased from the app store using the purchased option which is revealed by tapping the updates option at the bottom of the screen of the App store app on your iOS device.
If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.
Maybe you are looking for
-
How do I get the GAL in OWA to show up in my Outlook 2007 contacts list?
How do I get the GAL in OWA to show up in my Outlook 2007 contacts list? Is there a directory server address I can use to set up a new address book?
-
I have 2 ipods, 1 account and I am giving away an ipod. Help?
I have 2 iPods on one computer/account (a 3rd generation nano and iPod touch) . I don't use the nano anymore and was going to give it to my friend. Is it possible to delete the songs off that iPod only and not the iPod touch? 'And second, if I can d
-
Alternative for RFC_READ_TABLE FM
Hello All, SAP has asked not to use RFC_READ_TABLE function module (not to be used by SAPu2019s customers) directly or indirectly. Can anybody please suggest me what will be the alternative for this FM. Or what is the replacement for RFC_READ_TABLE F
-
How do i edit aol e-mails while in firefox?
nothing comes up when i'm in aol e-mail that will allow me to edit e-mails received before forwarding same. Suggestions? Thanks ljmsj
-
I RECIVED AN EMAIL FROM ADOBE AS : As good will gesture, we can help you with the upgrade for PSE 13. We would request you to place the order for Adobe Photoshop Elements 13 as an upgrade and then we will provide you the full version serial number